//
//  NSObject+HDGoodCollectModel.m
//  app
//
//  Created by D on 15/7/8.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "HDGoodCollectModel.h"

@implementation HDGoodCollectModel

-(instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        
        self.product_id = dict[@"product_id"];
        self.sale_num = dict[@"sale_num"];
        self.sale_price = dict[@"sale_price"];
        self.shop_id = dict[@"shop_id"];
        self.title = dict[@"title"];
        self.title_pic = dict[@"title_pic"];
        self.dateline = dict[@"dateline"];
        self.lastid = dict[@"lastid"];
        if ([dict[@"delSign"]length] > 0 ) {
            self.delSign = dict[@"delSign"];
        }else
        {
            self.delSign = @"000";
        }
        
    }
    return self;
}

+(instancetype)modelWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

@end
